package com.tianji.promotion.mapper;

import com.tianji.promotion.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 优惠券的规则信息 Mapper 接口
 * </p>
 *
 * @author xjs
 */
public interface CouponMapper extends BaseMapper<Coupon> {

    int incrementIssueNum(Long id, Integer issueNum);

    List<Coupon> selectByUserIdStatus(Long userId, Integer status);
}
